/*
 * RadioReceiver.h
 *
 *  Created on: Feb 4, 2010
 *      Author: fmason
 */

#include "../arduinomega/WProgram.h"
#include "../arduinomega/radio/radio.h"
#include "../constants/data.h"

#ifndef RADIORECEIVER_H_
#define RADIORECEIVER_H_

int const RADIO_POWER_PIN = 48;
int const RADIO_CYCLE_TIME = 1000;
int const RADIO_WARMUP = 11;

extern void handleCommand( int command );

void setupRadioReceiver();
int is_serviceable();
void clear_serviceable();
int get_message_id();
void radio_rxhandler(uint8_t pipe_number);
void sendSonarOutput( int value );

#endif /* RADIORECEIVER_H_ */

